﻿//using Dispatcher.Core;
//using Microsoft.AspNetCore.Mvc;
//using MiniFox.Infrastructure;
//using MiniFox.Platform.Applications.Web;
//using MiniFox.Platform.File.Models;
//using MiniFox.Platform.File.Web;
//using MiniFox.Resources;
//using MiniFox.Utility;
//using System.ComponentModel.DataAnnotations;

//namespace Dispatcher.Api.Controllers
//{
//    [Area(GlobalConstants.AREA_NAME)]
//    public class AttachmentController : AuthorizedController<AttachmentService>
//    {
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="batchId"></param>
//        /// <returns></returns>
//        [HttpPost]
//        public virtual async Task<Response<FileData[]>> Upload([Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired"), FromQuery]string batchId)
//        {
//            var task = Request.HttpFileBatchLoadAsync();
//            var fileDatas = await task;
//            Component.PresaveAttachments(batchId, fileDatas);
//            return fileDatas.CreateResponse();
//        }

//    }
//}
